home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / daten / flm / install < prev    next >
Text File  |  1995-08-15  |  5KB  |  196 lines

  1. ;Install-Script für FLM-Shareware-Version (noDisk) (c) 1995 Denis Unger
  2.  
  3. (complete 0)
  4.  
  5. (if (= @language "deutsch")
  6. ; Deutsche Installation
  7. (
  8.  (set default-lang 1)
  9.  
  10.  (set #flmdestination
  11.    (cat "Bitte Zielverzeichnis von FLM auswählen.\n"
  12.          "Ein Verzeichnis FLM wird automatisch erstellt."
  13.    )
  14.  )
  15.  (set #copyhothelplib_nc "Copy hothelplib.deutsch ...")
  16.  (set #copyhothelp3prefs "Kopiere Prefs-Datei für Hothelp ...")
  17.  (set #copyflm_catalog "Kopiere flm.catalog ...")
  18.  (set #copyhothelplib_catalog "Kopiere hothelplib.catalog ...")
  19.  (set #copyhothelp_lib "Kopiere hothelp.library ...")
  20.  (set #copyhothelp_handler "Kopiere HothelpHandler ...")
  21.  (set #copyflmfiles "Kopiere FLM-Dateien ...")
  22. ))
  23. (if (= @language "english")
  24. ; English installation
  25. (
  26.  (set default-lang 2)
  27.  (set #flmdestination
  28.    (cat "Please choose destination directory for FLM.\n"
  29.         "A directory FLM will be created."
  30.    )
  31.  )
  32.  (set #copyhothelplib_nc "Copy hothelplib.english ...")
  33.  (set #copyhothelp3prefs "Copy prefs-file for Hothelp ...")
  34.  (set #copyflm_catalog "Copy flm.catalog ...")
  35.  (set #copyhothelplib_catalog "Copy hothelplib.catalog ...")
  36.  (set #copyhothelp_lib "Copy hothelp.library ...")
  37.  (set #copyhothelphandler "Copy HothelpHandler ...")
  38.  (set #copyflmfiles "Copy FLM-files ...")
  39. ;...
  40. ;...
  41. ;...
  42. ))
  43. (if (= @language "français")
  44. ; France installation
  45. (
  46.  (set default-lang 3)
  47.  (set #flmdestination
  48.    (cat "Please choose destination directory for FLM.\n"
  49.         "A directory FLM will be created."
  50.    )
  51.  )
  52.  (set #copyhothelplib_nc "Copy hothelplib.english ...")
  53.  (set #copyhothelp3prefs "Copy prefs-file for Hothelp ...")
  54.  (set #copyflm_catalog "Copy flm.catalog ...")
  55.  (set #copyhothelplib_catalog "Copy hothelplib.catalog ...")
  56.  (set #copyhothelp_lib "Copy hothelp.library ...")
  57.  (set #copyhothelphandler "Copy HothelpHandler ...")
  58.  (set #copyflmfiles "Copy FLM-files ...")
  59. ;...
  60. ;...
  61. ;...
  62. ))
  63.  
  64. ;get workbench version
  65. (set vernum (getversion))
  66. (set wbver (/ vernum 65536))
  67.  
  68. (set flm-path
  69.     (askdir
  70.         (prompt #flmdestination)
  71.         (help "")
  72.         (default @default-dest)
  73.     )
  74. )
  75. (set @default-dest (tackon flm-path "FLM"))
  76.  
  77. (makedir
  78.     (@default-dest)
  79.     (infos)
  80. )
  81. ;now a directory FLM exists
  82.  
  83. (if (= default-lang 1)
  84. ; German
  85.  (if (< wbver 38)
  86.        (copyfiles
  87.             (prompt #copyhothelplib_nc)
  88.             (help "")
  89.             (source "hothelp/deutsch/hothelplib.deutsch")
  90.             (dest @default-dest)
  91.        )
  92.        (
  93.         (copylib
  94.             (prompt #copyhothelplib_catalog)
  95.             (help "")
  96.             (source "locale/catalogs/deutsch/hothelplib.catalog")
  97.             (dest "locale:catalogs/deutsch")
  98.                 (confirm)
  99.         )
  100.         (copyfiles
  101.            (prompt #copyhothelp3prefs)
  102.            (help "")
  103.            (source "hothelp/deutsch/hothelp3.pref")
  104.            (dest @default-dest)
  105.         )
  106.        )
  107.  )
  108. )
  109. (if (= default-lang 2)
  110. ;English
  111.  (if (< wbver 38)
  112.        (copyfiles
  113.             (prompt #copyhothelp_nc)
  114.             (help "")
  115.             (source "hothelp/english/hothelplib.english")
  116.             (dest @default-dest)
  117.        )
  118.        (
  119.         (copylib
  120.             (prompt #copyflm_catalog)
  121.             (help "")
  122.             (source "locale/catalogs/english/flm.catalog")
  123.             (dest "locale:catalogs/english")
  124.                 (confirm)
  125.         )
  126.         (copyfiles
  127.            (prompt #copyhothelp3prefs)
  128.            (help "")
  129.            (source "hothelp/english/hothelp3.pref")
  130.            (dest @default-dest)
  131.         )
  132.        )
  133.  )
  134. )
  135. (if (= default-lang 3)
  136. ;France
  137.  (if (< wbver 38)
  138.        (copyfiles
  139.             (prompt #copyhothelplib_nc)
  140.             (help "")
  141.             (source "hothelp/français/hothelplib.english")
  142.             (dest @default-dest)
  143.        )
  144.        (
  145.         (copylib
  146.             (prompt #copyflm_catalog)
  147.             (help "")
  148.             (source "locale/catalogs/français/flm.catalog")
  149.             (dest "locale:catalogs/français")
  150.                 (confirm)
  151.         )
  152.         (copyfiles
  153.            (prompt #copyhothelp3prefs)
  154.            (help "")
  155.            (source "hothelp/français/hothelp3.pref")
  156.            (dest @default-dest)
  157.         )
  158.        )
  159.  )
  160. )
  161.  
  162. (complete 10)
  163.  
  164. (copylib
  165.     (prompt #copyhothelp_lib)
  166.     (help "")
  167.     (source "libs/hothelp.library")
  168.     (dest "libs:")
  169.     (confirm)
  170. )
  171.  
  172. (complete 20)
  173.  
  174. (copylib
  175.     (prompt #copyhothelphandler)
  176.     (help "")
  177.     (source "l/HotHelpHandler")
  178.     (dest "l:")
  179.     (confirm)
  180. )
  181.  
  182. (complete 25)
  183.  
  184. (copyfiles
  185.     (prompt #copyflmfiles)
  186.     (help "")
  187.     (all)
  188.     (source "FLM")
  189.     (dest @default-dest)
  190. )
  191.  
  192. (complete 100)
  193.  
  194. (exit)
  195.  
  196.